From ricardo.trindade at emation.pt Thu Apr 1 17:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu Apr 1 17:31:45 2004 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 23:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu Apr 1 23:44:40 2004 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.linuxgrrls.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment.html From taj at www.linux.org.uk Fri Apr 2 00:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Apr 2 00:20:58 2004 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj@www.linux.org.uk From minyal at nortelnetworks.com Fri Apr 2 01:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Fri Apr 2 00:53:02 2004 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj@www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.linuxgrrls.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment.html From taj at www.linux.org.uk Fri Apr 2 01:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Apr 2 01:38:30 2004 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj@www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj@www.linux.org.uk From adam at sufferer.org Tue Apr 6 05:37:49 2004 From: adam at sufferer.org (adam) Date: Tue Apr 6 05:25:36 2004 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 15:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue Apr 6 15:40:41 2004 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.linuxgrrls.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment.html From taj at www.linux.org.uk Tue Apr 6 18:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue Apr 6 18:38:27 2004 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj@www.linux.org.uk From smitev at aivan7.net Wed Apr 7 13:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed Apr 7 12:57:56 2004 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 17:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed Apr 7 17:24:26 2004 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj@www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 10:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon Apr 19 10:18:54 2004 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 13:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon Apr 19 13:16:32 2004 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 14:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon Apr 19 14:54:21 2004 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj@www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 16:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon Apr 19 16:03:55 2004 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Tue Apr 20 01:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue Apr 20 01:11:44 2004 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj@www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 13:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed Apr 21 12:59:38 2004 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 23:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed Apr 21 23:18:50 2004 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.linuxgrrls.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment.bin From mringwal at inf.ethz.ch Wed Apr 21 23:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Wed Apr 21 23:26:33 2004 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 15:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu Apr 22 15:05:52 2004 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 22:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu Apr 22 22:34:29 2004 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.linuxgrrls.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment.bin From nip at 1783.com Thu Apr 22 23:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu Apr 22 23:06:52 2004 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 23:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu Apr 22 23:27:49 2004 Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj@www.linux.org.uk From nidhish at arssoftware.com Fri Apr 23 05:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri Apr 23 05:23:48 2004 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.linuxgrrls.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment.html From nip at 1783.com Sat Apr 24 02:52:06 2004 From: nip at 1783.com (1783 General) Date: Sat Apr 24 02:50:13 2004 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 15:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue Apr 27 15:47:41 2004 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 07:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed Apr 28 07:28:38 2004 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 17:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed Apr 28 20:30:16 2004 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster@fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 07:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri Apr 30 07:18:45 2004 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> Hello folks, I think I have the same problem Willem Riede reported on March 21, 2004. I get the following: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..0 Port: /dev/usb/tts/0 - Serial Unexpected Signal : 11 occurred at PC=0x8062b35 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) at Ctest.main(Ctest.java:14) whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods seem to work fine. I was initially running this on: Gentoo Linux 2004.0 Linux kernel 2.6.5 (gentoo-dev-sources) Sun JDK 1.4.2.04 After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, I tried with Sun JDK 1.3.1.09 Same behavior. Does anyone have any other suggestions? Rico Juinio From ricardo.trindade at emation.pt Thu Apr 1 17:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 23:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment.htm From taj at www.linux.org.uk Fri Apr 2 00:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj@www.linux.org.uk From minyal at nortelnetworks.com Fri Apr 2 01:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj@www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment.htm From taj at www.linux.org.uk Fri Apr 2 01:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj@www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj@www.linux.org.uk From adam at sufferer.org Tue Apr 6 05:37:49 2004 From: adam at sufferer.org (adam) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 15:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment.htm From taj at www.linux.org.uk Tue Apr 6 18:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj@www.linux.org.uk From smitev at aivan7.net Wed Apr 7 13:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Fri Jun 3 17:46:17 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 17:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj@www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 10:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 13:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 14:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj@www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 16:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Tue Apr 20 01:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj@www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 13:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 23:20:12 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0002.bin From mringwal at inf.ethz.ch Wed Apr 21 23:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 15:07:23 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 22:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0002.bin From nip at 1783.com Thu Apr 22 23:08:28 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 23:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 17:46:18 2005 Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj@www.linux.org.uk From nidhish at arssoftware.com Fri Apr 23 05:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri Jun 3 17:46:19 2005 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment.htm From nip at 1783.com Sat Apr 24 02:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 17:46:19 2005 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 15:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 17:46:19 2005 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 07:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 17:46:19 2005 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 17:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Fri Jun 3 17:46:19 2005 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster@fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 07:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri Jun 3 17:46:19 2005 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> Hello folks, I think I have the same problem Willem Riede reported on March 21, 2004. I get the following: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..0 Port: /dev/usb/tts/0 - Serial Unexpected Signal : 11 occurred at PC=0x8062b35 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) at Ctest.main(Ctest.java:14) whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods seem to work fine. I was initially running this on: Gentoo Linux 2004.0 Linux kernel 2.6.5 (gentoo-dev-sources) Sun JDK 1.4.2.04 After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, I tried with Sun JDK 1.3.1.09 Same behavior. Does anyone have any other suggestions? Rico Juinio From ricardo.trindade at emation.pt Thu Apr 1 17:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Fri Jun 3 18:08:39 2005 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 23:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0001.htm From taj at www.linux.org.uk Fri Apr 2 00:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj@www.linux.org.uk From minyal at nortelnetworks.com Fri Apr 2 01:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj@www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0001.htm From taj at www.linux.org.uk Fri Apr 2 01:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj@www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj@www.linux.org.uk From adam at sufferer.org Tue Apr 6 05:37:49 2004 From: adam at sufferer.org (adam) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 15:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0001.htm From taj at www.linux.org.uk Tue Apr 6 18:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj@www.linux.org.uk From smitev at aivan7.net Wed Apr 7 13:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 17:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj@www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 10:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 13:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 14:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:40 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj@www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 16:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Tue Apr 20 01:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj@www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 13:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 23:20:12 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0003.bin From mringwal at inf.ethz.ch Wed Apr 21 23:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 15:07:23 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 22:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0003.bin From nip at 1783.com Thu Apr 22 23:08:28 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 23:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj@www.linux.org.uk From nidhish at arssoftware.com Fri Apr 23 05:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces@linuxgrrls.org [mailto:rxtx-bounces@linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj@www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx@linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0001.htm From nip at 1783.com Sat Apr 24 02:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 15:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Fri Jun 3 18:08:41 2005 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 07:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Fri Jun 3 18:08:42 2005 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx@linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 17:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Fri Jun 3 18:08:42 2005 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster@fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 07:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri Jun 3 18:08:42 2005 Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> Hello folks, I think I have the same problem Willem Riede reported on March 21, 2004. I get the following: Devel Library ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 RXTX Warning: Removing stale lock file. /var/lock/LCK..0 Port: /dev/usb/tts/0 - Serial Unexpected Signal : 11 occurred at PC=0x8062b35 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at gnu.io.RXTXPort.NativeisReceiveTimeoutEnabled(Native Method) at gnu.io.RXTXPort.isReceiveTimeoutEnabled(RXTXPort.java:411) at Ctest.main(Ctest.java:14) whenever my program invokes isReceiveTimeoutEnabled(). The other isXXX() methods seem to work fine. I was initially running this on: Gentoo Linux 2004.0 Linux kernel 2.6.5 (gentoo-dev-sources) Sun JDK 1.4.2.04 After I found Trent Jarvi's recommendation to run a 1.3.1 series JDK, I tried with Sun JDK 1.3.1.09 Same behavior. Does anyone have any other suggestions? Rico Juinio From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0370.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0395.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0395.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0395.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0144.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0395.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0392.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0371.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0396.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0396.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0396.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0171.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0396.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0393.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0372.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0397.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0397.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0397.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0207.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0397.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0394.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0373.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0398.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0398.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0398.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0368.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0398.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0395.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0375.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0399.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0399.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0399.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0395.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0399.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0396.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0381.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0400.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0400.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0400.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0396.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0400.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0397.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0395.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0401.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0401.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0401.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0397.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0401.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0398.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0396.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0402.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0402.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0402.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0398.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0402.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0399.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0397.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0403.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0403.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0403.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0399.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0403.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0400.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0398.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0404.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0404.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0404.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0400.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0404.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0401.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0001.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0001.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0001.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0001.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0001.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0002.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0002.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0002.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0002.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0002.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0003.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0003.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0003.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0003.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0003.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0004.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0004.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0004.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0004.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0004.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0005.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0005.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0005.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0005.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0005.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0006.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0006.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0006.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0006.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0006.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0007.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0007.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0007.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0007.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0007.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0008.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0008.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0008.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0008.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0008.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0009.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0009.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0009.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0009.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0009.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0009.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0009.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0010.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0010.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0010.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0010.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0010.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0010.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0010.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0001.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0001.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0001.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0001.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0001.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0002.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0002.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0002.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0002.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0002.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0003.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0003.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0003.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0003.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0003.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0004.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0004.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0004.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0004.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0004.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0005.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0005.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0005.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0005.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0005.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0006.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0006.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0006.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0006.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0006.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0007.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0007.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0007.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0007.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0007.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0008.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0008.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0008.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0008.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0008.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0009.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0009.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0009.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0009.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0009.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0009.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0009.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0010.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0010.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0010.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0010.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0010.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0010.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0010.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0001.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0001.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0001.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0001.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0001.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0002.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0002.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0002.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0002.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0002.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0003.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0003.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0003.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0003.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0003.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0004.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0004.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0004.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0004.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0004.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0005.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0005.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0005.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0005.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0005.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0006.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0006.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0006.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0006.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0006.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0007.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0007.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0007.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0007.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0007.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040402/61e6622a/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0008.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0008.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0008.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0008.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0008.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0009.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0009.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0009.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0009.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0009.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0009.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0010.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0001.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0010.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0010.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0010.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0010.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0010.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0011.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0002.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0011.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0011.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0011.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0011.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0011.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0012.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0003.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0012.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0012.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0012.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0012.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0012.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0013.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0004.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0013.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0013.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0013.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0013.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0013.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0014.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0005.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0014.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0014.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0014.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0014.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0014.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0015.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0006.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0015.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0015.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0015.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0015.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0015.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0016.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0007.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0016.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0016.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0016.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0016.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0016.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0017.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0008.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0017.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0017.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0017.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0017.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0017.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0018.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0009.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0018.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0018.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0018.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0018.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0018.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0019.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0010.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0019.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0019.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0019.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0019.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0019.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0020.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0011.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0020.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0020.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0020.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0020.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0020.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0021.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0012.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0021.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0021.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0021.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0021.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0021.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0022.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0013.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0022.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0022.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0022.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0022.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0022.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0023.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0014.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0023.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0023.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0023.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0023.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0023.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0024.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0015.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0024.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0024.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0024.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0024.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0024.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0025.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0016.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0025.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0025.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0025.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0025.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0025.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0026.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0017.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0026.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0026.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0026.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0026.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0026.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0027.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0018.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0027.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0027.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0027.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0027.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0027.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0028.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0019.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0028.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0028.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0028.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0028.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0028.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0029.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0020.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0029.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0029.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0029.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0029.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0029.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0030.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0021.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0030.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0030.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0030.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0030.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0030.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0031.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0022.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0031.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot@drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0031.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0031.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0031.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj@galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0031.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0032.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0023.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0032.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0032.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0032.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0032.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0032.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0033.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0024.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0033.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0033.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0033.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0033.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0033.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0034.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0025.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0034.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0034.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0034.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0034.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0034.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0035.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0026.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0035.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0035.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0035.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0035.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0035.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0036.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0027.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0036.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0036.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0036.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0036.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0036.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0037.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0028.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0037.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0037.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0037.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0037.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0037.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0038.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0029.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0038.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0038.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0038.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0038.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0038.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0039.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0030.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0039.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0039.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0039.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0039.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0039.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0040.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0031.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0040.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0040.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0040.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0040.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0040.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0041.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0032.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0041.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0041.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0041.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0041.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0041.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0042.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0033.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0042.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0042.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0042.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0042.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0042.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0043.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0034.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0043.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0043.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0043.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0043.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0043.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0044.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0035.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0044.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0044.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0044.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0044.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0044.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0045.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0036.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0045.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0045.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0045.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0045.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0045.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0046.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0037.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0046.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0046.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0046.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0046.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0046.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0047.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0038.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0047.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0047.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0047.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0047.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0047.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0048.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0039.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0048.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0048.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0048.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0048.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0048.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0049.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0040.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0049.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0049.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0049.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0049.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0049.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0050.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0041.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0050.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0050.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0050.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0050.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0050.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0051.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0042.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0051.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0051.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0051.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0051.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0051.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0052.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0043.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0052.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0052.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0052.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0052.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0052.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0053.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0044.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0053.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0053.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0053.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0053.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0053.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0054.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0045.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0054.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0054.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0054.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0054.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0054.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0055.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0046.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0055.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0055.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0055.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0055.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0055.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0056.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0047.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0056.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0056.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0056.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0056.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0056.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0057.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0048.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0057.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0057.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0057.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0057.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0057.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0058.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0049.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0058.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0058.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0058.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0058.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0058.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0059.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0050.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0059.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0059.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0059.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0059.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0059.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0060.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0051.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0060.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0060.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0060.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0060.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0060.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0061.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0052.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0061.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0061.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0061.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0061.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0061.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0062.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0053.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0062.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0062.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0062.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0062.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0062.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0063.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0054.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0063.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0063.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0063.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0063.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0063.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0064.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0055.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0064.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0064.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0064.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0064.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0064.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0065.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0056.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0065.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0065.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0065.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0065.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0065.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0066.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0057.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0066.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0066.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0066.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0066.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0066.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0067.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0058.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0067.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0067.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0067.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0067.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0067.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0068.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0059.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0068.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0068.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0068.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0068.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0068.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0069.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0060.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0069.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0069.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0069.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0069.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0069.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0070.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0061.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0070.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0070.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0070.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0070.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0070.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0071.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0062.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0071.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0071.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0071.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0071.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0071.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0072.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0063.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0072.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0072.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0072.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0072.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0072.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0073.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0064.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0073.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0073.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0073.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0073.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0073.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0074.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0065.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0074.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0074.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0074.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0074.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0074.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0075.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0066.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0075.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0075.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0075.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0075.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0075.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0076.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0067.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0076.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0076.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0076.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0076.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0076.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0077.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0068.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0077.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0077.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0077.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0077.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0077.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0078.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0069.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0078.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0078.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0078.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0078.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0078.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0079.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0070.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0079.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0079.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0079.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0079.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0079.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0080.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0071.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0080.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0080.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0080.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0080.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0080.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0081.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0072.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0081.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0081.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0081.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0081.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0081.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0082.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0073.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0082.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0082.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0082.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0082.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0082.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0083.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0074.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0083.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0083.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0083.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0083.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0083.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0084.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0075.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0084.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0084.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0084.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0084.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0084.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0085.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0076.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0085.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0085.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0085.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0085.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0085.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0086.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0077.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0086.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0086.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0086.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0086.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0086.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0087.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0078.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0087.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0087.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0087.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0087.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0087.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0088.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0079.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0088.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0088.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0088.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0088.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0088.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0089.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0080.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0089.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0089.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0089.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0089.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0089.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0090.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0081.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0090.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0090.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0090.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0090.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0090.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0091.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0082.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0091.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0091.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0091.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0091.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0091.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0092.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0083.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0092.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0092.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0092.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0092.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0092.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0093.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0084.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0093.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0093.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0093.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0093.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0093.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0094.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0085.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0094.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0094.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0094.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0094.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0094.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0095.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0086.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0095.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0095.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0095.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0095.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0095.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0096.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0087.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0096.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0096.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0096.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0096.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0096.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0097.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0088.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0097.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0097.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0097.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0097.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0097.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0098.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0089.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0098.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0098.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0098.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0098.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0098.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0099.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0090.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0099.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0099.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0099.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0099.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0099.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0100.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0091.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0100.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0100.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0100.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0100.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0100.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0101.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0092.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0101.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0101.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0101.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0101.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0101.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0102.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0093.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0102.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0102.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0102.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0102.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0102.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0103.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0094.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0103.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0103.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0103.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0103.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0103.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0104.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0095.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0104.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0104.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0104.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0104.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0104.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0105.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0096.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0105.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0105.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0105.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0105.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0105.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0106.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0097.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0106.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0106.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0106.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0106.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0106.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0107.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0098.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0107.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0107.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0107.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0107.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0107.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0108.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0099.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0108.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0108.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0108.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0108.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0108.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0109.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0100.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0109.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0109.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0109.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0109.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0109.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0110.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0101.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0110.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0110.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0110.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0110.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0110.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0111.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0102.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0111.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0111.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0111.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0111.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0111.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0112.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0103.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0112.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0112.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0112.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0112.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0112.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0113.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0104.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0113.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0113.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0113.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0113.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0113.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0114.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0105.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0114.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0114.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0114.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0114.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0114.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0115.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0106.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0115.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0115.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0115.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0115.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0115.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0116.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0107.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0116.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0116.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0116.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0116.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0116.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0117.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0108.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0117.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0117.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0117.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0117.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0117.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0118.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0109.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0118.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0118.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0118.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0118.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0118.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0119.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0110.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0119.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0119.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0119.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0119.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0119.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0120.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0111.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0120.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0120.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0120.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0120.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0120.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0121.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0112.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0121.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0121.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0121.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0121.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0121.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0122.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0113.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0122.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0122.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0122.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0122.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0122.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0123.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0114.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0123.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0123.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0123.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0123.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0123.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0124.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0115.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0124.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0124.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0124.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0124.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0124.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0125.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0116.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0125.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0125.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <0C28A7C1-94A5-11D8-8CD1-000A95DA5E9C@mac.com> what kind of error(s) did you get? On Apr 21, 2004, at 6:20 PM, 1783 General wrote: > I am attempting to install onto MacOS 10.3.3. I have made sure that > /var/spool/uucp exists and has permissions. I am a member of uucp > group. > > I get an error running the package installer. I am running > rxtx-2.0-7pre1. Any help is greatly appreciated. > > I am going to be using a USB-serial adapater. I have seen a few > messages on the mail lists of people trying this. I am just trying to > get a Serial LCD up and running and I have only USB ports. > > This project looks great and I am looking forward to attempting the > X10 components. > > > Regards, > nip > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > Dmitry Markman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 875 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040422/8c84bfe1/attachment-0125.bin From nip at 1783.com Thu Apr 22 16:08:28 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 16:08:28 -0600 Subject: [Rxtx] Linux Install Message-ID: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> I installed RXTX under linux RH 9.0. I used the Solaris commapi; however, I am getting an error: "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? Regards, nip From taj at www.linux.org.uk Thu Apr 22 16:29:31 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Thu, 22 Apr 2004 23:29:31 +0100 (BST) Subject: [Rxtx] Linux Install In-Reply-To: <9574BFBE-94A9-11D8-BED2-000A959CFB58@1783.com> Message-ID: On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No > SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? > In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk From nidhish at arssoftware.com Thu Apr 22 22:25:27 2004 From: nidhish at arssoftware.com (NIDHISH) Date: Fri, 23 Apr 2004 09:55:27 +0530 Subject: [Rxtx] Linux Install In-Reply-To: Message-ID: Hello Trent Jarvi, This issue we also have met with. This is a typical version conflict of RXTX . You have to use RXTX 1.4 for the glib functioning . We have seen from the JMRI site that the versions above RXTX 1.4 are having problems with commapi. The setup we have used and tested successfully ---------------------------------------------------------------------- 1) Red Hat 9 (2.4.20-8) . 2) JSDK 1.4 for Linux 3) Javacomm API for Solaris. 4) RXTX 1.4 This settings will work , you can have a try. Regards, Nidhish Abraham. ---------------------------------------------------------------------------- ---- -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org]On Behalf Of Trent Jarvi Sent: Friday, April 23, 2004 4:00 AM To: Java RXTX discussion Subject: Re: [Rxtx] Linux Install On Thu, 22 Apr 2004, 1783 General wrote: > I installed RXTX under linux RH 9.0. I used the Solaris commapi; > however, I am getting an error: > > "Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: No SolarisSerialParallel in java.library.path" > > I placed the .so in /usr/lib and the comm.jar in jre/lib. Any ideas? In the Solaris Comm.jar you will see they mention how to install the javax.comm.properties file needed to avoid the above problem. $ find /opt -name javax.comm.properties /opt/java/jdk/jre/lib/javax.comm.properties $ more /opt/java/jdk/jre/lib/javax.comm.properties Driver=gnu.io.RXTXCommDriver -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040423/04c84d34/attachment-0125.html From nip at 1783.com Fri Apr 23 19:52:06 2004 From: nip at 1783.com (1783 General) Date: Fri, 23 Apr 2004 19:52:06 -0600 Subject: [Rxtx] MacOS Troubles Revealed Message-ID: Well, I found the problem with the MacOS X RXTX install. The properties document was not saved in plain text. OSX TextEdit saves in RTF by default. Thus, all my fault for not looking at the file from the command line. It seems to be working great now. Now for the Linux version... Thanks to the suggestions from the maillist. Regards, nip From mringwal at inf.ethz.ch Tue Apr 27 08:50:26 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Tue, 27 Apr 2004 16:50:26 +0200 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update Message-ID: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Hi I tried compiling the projectbuilder project using Xcode1.2. First I did answer the "do you want to upgrade your project file" question. Then, to get it compile I did need to change 2 things: * rxtx.jar target: the paths to - UnSupportedLoggerException.java - Zystem.java had been given absolute paths to /Users/dima/... :) so giving them in a relative way helped. * then the compilation of librxtxSerial.jni failed for the simple reason that it couln't find jni_md.h headers. I'm using JDK 1.4.2 but in its folder are not headers. Actually the headers are not far from that, I could find them in 1.4.1 After adding this include path, it compiles fine. I'm building mac os x fink packages that should install rxtx together with the classpathx-comm implementation and do the setup. For this, I need to be able to compile rxtx from a source archive/snapshot. What are the options? For me, the easiest way would be to provide my tar.gz'ed project file, suitatble for 10.3, to have it added to the rxtx cvs. As I had to upgrade to XCode1.2 it could be in the cvs in addition to the current project file. e.g. as LibSerial.xcode.tar.gz then the package could download this and use the command line version of xcode to build the rxtx.jar and the libserial.jni. From there installation should go easily. Other ideas? Thanks, Matthias Ringwald From dmarkman at mac.com Wed Apr 28 00:31:27 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Wed, 28 Apr 2004 02:31:27 -0400 Subject: [Rxtx] RXTX 2.0-pre7 (CVS) Mac OS X 10.3 compile report and request for update In-Reply-To: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> References: <3864697C-985A-11D8-B722-0003936CA678@inf.ethz.ch> Message-ID: you have to install 1.4.2 javadeveloper package (on ADC site free) On Apr 27, 2004, at 10:50 AM, Matthias Ringwald wrote: > Hi > > I tried compiling the projectbuilder project using Xcode1.2. > First I did answer the "do you want to upgrade your project file" > question. > Then, to get it compile I did need to change 2 things: > > * rxtx.jar target: the paths to > - UnSupportedLoggerException.java > - Zystem.java > had been given absolute paths to /Users/dima/... :) > so giving them in a relative way helped. > > * then the compilation of librxtxSerial.jni failed for the simple > reason > that it couln't find jni_md.h headers. > > I'm using JDK 1.4.2 but in its folder are not headers. > Actually the headers are not far from that, I could find them in 1.4.1 > > After adding this include path, it compiles fine. > > > I'm building mac os x fink packages that should install rxtx together > with the classpathx-comm implementation and do the setup. > > For this, I need to be able to compile rxtx from a source > archive/snapshot. > > What are the options? > > For me, the easiest way would be to provide my tar.gz'ed project file, > suitatble > for 10.3, to have it added to the rxtx cvs. As I had to upgrade to > XCode1.2 it could > be in the cvs in addition to the current project file. e.g. as > LibSerial.xcode.tar.gz > > then the package could download this and use the command line version > of xcode to build > the rxtx.jar and the libserial.jni. From there installation should go > easily. > > Other ideas? > > > Thanks, > Matthias Ringwald > > _______________________________________________ > Rxtx mailing list > Rxtx at linuxgrrls.org > http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx > > Dmitry Markman From dmccarthy at fexco.com Wed Apr 28 10:42:55 2004 From: dmccarthy at fexco.com (Denis McCarthy) Date: Wed, 28 Apr 2004 17:42:55 +0100 Subject: [Rxtx] latency on ISDN TA using RXTX Message-ID: <0BEBF0D84B489643952C3148987916527F9863@koe2k1.fexco.com> Hi, I've been using RXTX (with greate success) to service a bank of modems that process data uploads from terminals using a STX/ETX, ACK/NAK protocol. This has been going well for some time now. However I have recently hit a snag. I'm required to extend the service to ISDN calls, which come in via a Hayes terminal Adapter. Much to my bemusement I've found that I am unable to process packets from the protocol as fast as the old system I'm replacing (I'm half as fast as the old system). The flow of my application is as follows: The terminal sends me a data packet (delimited by STX and ETX characters). I ACK the packet when I'm happy I've received it correctly. Currently it is taking 300 milliseconds to process such a packet. The same terminal I'm testing with can process its packets at least twice as quickly (~150ms) on the old system. Now my application spends ~100ms actually processing the packet - I can optimize this code, but it won't do me much good as even if I optimize it away to nothing I'll still be slower thant the previous app. The rest of the time (200ms) is spent between me sending the ACK for the previous packet and receiving data for the next packet. Would anyone have any idea as to why there might be such a big latency between me sending and receiving data? A colleague tells me there is a chance that my Terminal Adapter is buffering data prior to sending it, but I haven't been able to get any satisfaction from Hayes about whether this can be turned off (no mention of it in the manual). Is there anything in RXTX that might be causing this buffering, and indeed if not, does anyone with experience in this area know any area that I should investigate? I'm using RXTX with gentoo Linux, kernel 2.4.22 Thanks Denis ********************************************************************** This email and any files transmitted with it are confidential and/or privileged and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient(s) please note that any review, distribution, dissemination, disclosure, alteration, printing, copying, transmission or use of this email and/or any file transmitted or the information therein is prohibited and may be unlawful. If you have received this email and any file transmitted with it in error please notify us by email at postmaster at fexco.com or by telephone at +353 66 97 61258 and then delete the email and all copies of it from your system and destroy any hard copies of the email. Please note that any views, opinions or advice contained in this communication are those of the sending individual and not necessarily those of FEXCO. Email may be susceptible to data corruption, interception and unauthorised amendment, and we do not accept liability for any such corruption, interception or amendment or the consequences thereof. FEXCO and each legal entity in the FEXCO group of companies or business units of FEXCO reserve the right to monitor all email communications through its networks. This footnote also confirms that MailSweeper has swept this email message for the presence of computer viruses. www.FEXCO.com ********************************************************************** From ricosj at galaxy-isp.org Fri Apr 30 00:18:41 2004 From: ricosj at galaxy-isp.org (ricosj at galaxy-isp.org) Date: Fri, 30 Apr 2004 07:18:41 +0100 (BST) Subject: [Rxtx] Unexpected Signal : 11 occurred at PC=0x8062b35 Message-ID: <20040430061841.23AF17327D@mail.linuxgrrls.org> An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://mailman.qbang.org/pipermail/rxtx/attachments/20040430/ada0f486/attachment-0125.pl From ricardo.trindade at emation.pt Thu Apr 1 09:39:55 2004 From: ricardo.trindade at emation.pt (Ricardo Trindade) Date: Thu, 1 Apr 2004 17:39:55 +0100 Subject: [Rxtx] stable release In-Reply-To: Message-ID: Hi, Any news on a new rxtx release ? thanks Ricardo From minyal at nortelnetworks.com Thu Apr 1 15:55:00 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 16:55:00 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all the "notifyOnXXX()" to true, then my serial event listener will not get any event notification, including data available. However, if i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer is empty, then the serial event listener gets all the goodies. Is this a bug? thanks, LMY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/c7fc3080/attachment-0126.html From taj at www.linux.org.uk Thu Apr 1 16:31:27 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 00:31:27 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC55A@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set all > the "notifyOnXXX()" to true, then my serial event listener will not get any > event notification, including data available. However, if i comment out the > line "port.notifyOnOutputEmpty(true)", meaning don't notify if output buffer > is empty, then the serial event listener gets all the goodies. Is this a > bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk From minyal at nortelnetworks.com Thu Apr 1 17:03:25 2004 From: minyal at nortelnetworks.com (Minya Liang) Date: Thu, 1 Apr 2004 18:03:25 -0600 Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on Message-ID: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 My kernel is 2.4.18-3. so would kernel upgrade help? or need to hack the driver? thanks a lot, LMY -----Original Message----- From: Trent Jarvi [mailto:taj at www.linux.org.uk] Sent: Thursday, April 01, 2004 5:31 PM To: Java RXTX discussion Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on On Thu, 1 Apr 2004, Minya Liang wrote: > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > all the "notifyOnXXX()" to true, then my serial event listener will > not get any event notification, including data available. However, if > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > notify if output buffer is empty, then the serial event listener gets > all the goodies. Is this a bug? > I suspect the serial card you are using has a driver that does not support the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop gives up looking for events. This call is Linux specific. Which serial card is this? Which kernel version are you running? There is another code path rxtx could use if the kernel driver is the problem. I think putting this #undef TIOCSERGETLSR _above_ #include SerialImp.h in SerialImp.c will force rxtx to use the other path: ... extern int errno; #undef TIOCSERGETLSR #include "SerialImp.h" ... -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040401/61e6622a/attachment-0117.html From taj at www.linux.org.uk Thu Apr 1 17:49:00 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 2 Apr 2004 01:49:00 +0100 (BST) Subject: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is on In-Reply-To: <870397D7C140C84DB081B88396458DAF053FC69F@zrc2c000.us.nortel.com> Message-ID: On Thu, 1 Apr 2004, Minya Liang wrote: > i'm using Equinox SST-8P (PCI to 8 serial ports). i downloaded driver for > this card from Equinox, eqnx_4.06b. it's a src.rpm. here's the link > http://www.equinox.com/Driver_Search_Results153.cfm?uid=344 > > My kernel is 2.4.18-3. > > so would kernel upgrade help? or need to hack the driver? > > thanks a lot, > LMY > I glanced at their kernel driver source code. It does not support the ioctl. You are probably best off building rxtx with the #undef mentioned. The native rxtx driver would have to be rebuilt. The new rxtx will use the same code path used on Solaris which also lacks the ioctl. In such cases rxtx uses a thread to call flush after write and then reports the needed event. Upgrading the kernel will not help. The code is missing in the kernel driver. I know some other multiport cards have the same issue. MOXA is an example of a multiport card that does not have the problem. > -----Original Message----- > From: Trent Jarvi [mailto:taj at www.linux.org.uk] > Sent: Thursday, April 01, 2004 5:31 PM > To: Java RXTX discussion > Subject: Re: [Rxtx] serialEvent() not fired if port's notifyOnOutputEmpty is > on > > > On Thu, 1 Apr 2004, Minya Liang wrote: > > > i'm running 2.0.7pre1 on Linux RH7.3. If i open a serial port and set > > all the "notifyOnXXX()" to true, then my serial event listener will > > not get any event notification, including data available. However, if > > i comment out the line "port.notifyOnOutputEmpty(true)", meaning don't > > notify if output buffer is empty, then the serial event listener gets > > all the goodies. Is this a bug? > > > > I suspect the serial card you are using has a driver that does not support > the TIOCSERGETLSR ioctl() call. When the check fails, the eventLoop > gives up looking for events. This call is Linux specific. > > Which serial card is this? Which kernel version are you running? > > There is another code path rxtx could use if the kernel driver is the > problem. I think putting this #undef TIOCSERGETLSR _above_ > #include SerialImp.h in SerialImp.c will force rxtx to use the other path: > > ... > extern int errno; > #undef TIOCSERGETLSR > #include "SerialImp.h" > ... > > > -- Trent Jarvi taj at www.linux.org.uk From adam at sufferer.org Mon Apr 5 22:37:49 2004 From: adam at sufferer.org (adam) Date: Tue, 6 Apr 2004 00:37:49 -0400 Subject: [Rxtx] RXTX OS X Problems Message-ID: <288D30F4-8784-11D8-80F6-000393581168@sufferer.org> I'm running OS 10.3 (Panther). I have installed the latest RXTX build (2.1-7pre17) and version 1.8 Keyspan drivers for my Keyspan USA-19 serial adaptor. I'm running a Java application called BioPro (biopro.sourceforge.net). I have replaced the Win32 comm.jar file that was included with the RXTXcomm.jar in /ext of the application's directory. When I run the application I get this error: java.lang.NoClassDefFoundError: javax/comm/UnsupportedCommOperationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at biopro.processing.Element.newInstance(Unknown Source) at biopro.Main.loadDesign(Unknown Source) at biopro.Main.initAll(Unknown Source) at biopro.ThreadNewDesign.runExc(Unknown Source) at biopro.ThreadNewDesign.run(Unknown Source) at java.lang.Thread.run(Thread.java:552) Any ideas of what I can do to get the program to recognize my serial device? From smitev at aivan7.net Tue Apr 6 08:53:11 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Tue, 6 Apr 2004 17:53:11 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? Message-ID: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Hi all, i am trying to set serial port parameters as follows: serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); but when i look on the report from PortMon.exe i see that the library initialyzes serial port using baud rate 9600 ! Is it possible to initialize the serial port with baut rate of 10400 bits/sec ? thanks. Simeon Mitev Aivan7 OOD www.aivan7.net Kuklenskoshosse 21 str. 4000 Plovdiv - Bulgaria -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20040406/8b6b8ebb/attachment-0126.html From taj at www.linux.org.uk Tue Apr 6 11:50:08 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 6 Apr 2004 18:50:08 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <002301c41be6$e1a43680$4620a8c0@Aivan7.net> Message-ID: On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk From smitev at aivan7.net Wed Apr 7 06:10:59 2004 From: smitev at aivan7.net (Simeon Mitev) Date: Wed, 7 Apr 2004 15:10:59 +0300 Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: Message-ID: <000401c41c99$63734810$4620a8c0@Aivan7.net> Currently I am using w32 library! Is it enough just to insert new line with this code : #define CBR_10400 10400 Into win32termios.h file and recompile the sodtware ? Simeon Mitev -----Original Message----- From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] On Behalf Of Trent Jarvi Sent: 06 ????? 2004 20:50 To: Java RXTX discussion Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? On Tue, 6 Apr 2004, Simeon Mitev wrote: > Hi all, > > i am trying to set serial port parameters as follows: > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > but when i look on the report from PortMon.exe i see that the library > initialyzes serial port using baud rate 9600 ! > > Is it possible to initialize the serial port with baut rate of 10400 > bits/sec ? > > thanks. > On Linux I think things will work. There is some code that tries to set the baud base and divisor on the UART. On w32 there would need to be some coding done in termios.c. The function that would set custom speeds is not implmented: int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) { /* 5 Baud rate fix sstruct.baud_base sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); */ return(0); } -- Trent Jarvi taj at www.linux.org.uk _______________________________________________ Rxtx mailing list Rxtx at linuxgrrls.org http://mailman.linuxgrrls.org:8080/mailman/listinfo/rxtx From taj at www.linux.org.uk Wed Apr 7 10:36:18 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Wed, 7 Apr 2004 17:36:18 +0100 (BST) Subject: [Rxtx] is it possible working on 10400 bits/sec. ? In-Reply-To: <000401c41c99$63734810$4620a8c0@Aivan7.net> Message-ID: Not really but I think if you go through termios.c and replace both cases where BaudRate is set, you can hardcode the library to work at 10400. There needs to be more logic for the 'nonstandard' speeds. So if you replace: dcb->BaudRate = CBR_9600 ; dcb->BaudRate = B_to_CBR( s_termios->c_ispeed ); with: dcb->BaudRate = CBR_10400; along with the define you want to add. It should work. As I recall, w32 will try to set the speed as close as possible to the 10400 when it sees it is not a normal define. From there you could put printfs in the code and work backwards to get the calls working from Java. I'd make sure the hard code speed works first. If that does not work, you will have to figure out how to manipulate the BaudBase and Divisor which is where I had stopped. The BaudBase and Divisor manipulation may not be needed in your case. Microsoft probably has better documentation online concerning this part of their API now. On Wed, 7 Apr 2004, Simeon Mitev wrote: > > Currently I am using w32 library! > Is it enough just to insert new line with this code : > > #define CBR_10400 10400 > > Into win32termios.h file and recompile the sodtware ? > > > Simeon Mitev > > > -----Original Message----- > From: rxtx-bounces at linuxgrrls.org [mailto:rxtx-bounces at linuxgrrls.org] > On Behalf Of Trent Jarvi > Sent: 06 ????? 2004 20:50 > To: Java RXTX discussion > Subject: Re: [Rxtx] is it possible working on 10400 bits/sec. ? > > > On Tue, 6 Apr 2004, Simeon Mitev wrote: > > > Hi all, > > > > i am trying to set serial port parameters as follows: > > > > serialPort.setSerialPortParams(10400, SerialPort.DATABITS_8, > > SerialPort.STOPBITS_1, SerialPort.PARITY_NONE); > > > > but when i look on the report from PortMon.exe i see that the library > > initialyzes serial port using baud rate 9600 ! > > > > Is it possible to initialize the serial port with baut rate of 10400 > > bits/sec ? > > > > thanks. > > > > On Linux I think things will work. There is some code that tries to set > > the baud base and divisor on the UART. On w32 there would need to be > some coding done in termios.c. The function that would set custom > speeds is > not implmented: > > int serial_struct_to_DCB( struct serial_struct *sstruct, DCB *dcb ) > { > /* 5 Baud rate fix > sstruct.baud_base > sstruct.custom_divisor = ( sstruct.baud_base/cspeed ); > */ > return(0); > } > > > > > > -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 03:19:36 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 11:19:36 +0200 Subject: [Rxtx] MacOS X & RXTXCommDriver.java trying to read javax.comm.properties Message-ID: hi on mac os x, the property "java.ext.dirs" contains a list of extension dirs (as one might guess) RXTXCommDriver.registerSpecificPorts() would like to read the javax.comm.properties file but fails to do so miserably, as it takes this list and appends "/javax.comm.rxtx.properties". shouldn't this file be in property "java.home" + property "file.seperator" + "lib" + property "file.seperator" ? it doesn't matter that much as all ports are found. just thought it wouldn't hurt to report (and maybe fix). (as I had some other problems, and the first thing I found was this...) regards, Matthias Ringwald From mringwal at inf.ethz.ch Mon Apr 19 06:17:21 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 14:17:21 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) Message-ID: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> hi simple question: is it possible to have both installed at the same ? or at least, should this be possible? Some apps might want to use javax.comm and some other gnu.io if yes, can I just install both without any particular order ? regards, matthias ringwald From taj at www.linux.org.uk Mon Apr 19 07:55:13 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Mon, 19 Apr 2004 14:55:13 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: <8202C136-91FB-11D8-950F-0003936CA678@inf.ethz.ch> Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > hi > > simple question: is it possible to have both installed at the same ? > or at least, should this be possible? > > Some apps might want to use javax.comm and some other gnu.io > > if yes, can I just install both without any particular order ? > > regards, > matthias ringwald > hmm. I think there will be a slight problem. But its something we could fix in the future. The native libraries will have the same name. Right now, there is librxtxSerial.so which could be a symbolic link to the 2.0 or 2.1 native libraries. This will currently be a link to the last library installed. If we changed this so there was a librxtxSerial0.so and librxtxSerial1.so, then we could have the libraries installed at the same time. The only coding changes needed would be in the System.loadLibrary( "rxtxSerial" ); I'll put this change in the release comming. I was going to release yesterday but we have some ant build files comming too now. -- Trent Jarvi taj at www.linux.org.uk From mringwal at inf.ethz.ch Mon Apr 19 09:04:45 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Mon, 19 Apr 2004 17:04:45 +0200 Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: References: Message-ID: On 19.04.2004, at 15:55, Trent Jarvi wrote: >> simple question: is it possible to have both installed at the same ? >> or at least, should this be possible? > > > hmm. I think there will be a slight problem. But its something we > could > fix in the future. The native libraries will have the same name. > > Right now, there is librxtxSerial.so which could be a symbolic link to > the > 2.0 or 2.1 native libraries. This will currently be a link to the last > library installed. > > I'll put this change in the release comming. I was going to release > yesterday but we have some ant build files comming too now. hi trent, cool! another question: why do the native libraries differ at all? A quick glance just showed me, that only the symbol names differ. what about just defining both functions, e.g. to implement the gnu_io_ version and have the javax_comm_ version call the gnu_io version. shouldn't cost to much performance. just an idea... I will be fine with two libs that use different names, no problem. regards, matthias From taj at www.linux.org.uk Mon Apr 19 18:12:41 2004 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 20 Apr 2004 01:12:41 +0100 (BST) Subject: [Rxtx] 2.0 & 2.1 at the same time (javax.comm - gnu.io) In-Reply-To: Message-ID: On Mon, 19 Apr 2004, Matthias Ringwald wrote: > > On 19.04.2004, at 15:55, Trent Jarvi wrote: > > >> simple question: is it possible to have both installed at the same ? > >> or at least, should this be possible? > > > > > > hmm. I think there will be a slight problem. But its something we > > could > > fix in the future. The native libraries will have the same name. > > > > Right now, there is librxtxSerial.so which could be a symbolic link to > > the > > 2.0 or 2.1 native libraries. This will currently be a link to the last > > library installed. > > > > > I'll put this change in the release comming. I was going to release > > yesterday but we have some ant build files comming too now. > > hi trent, > cool! > > another question: why do the native libraries differ at all? > > A quick glance just showed me, that only the symbol names differ. > what about just defining both functions, > e.g. to implement the gnu_io_ version and have the > javax_comm_ version call the gnu_io version. > shouldn't cost to much performance. > > just an idea... > > I will be fine with two libs that use different names, no problem. > The one problem I can think of is the exceptions in 2.0 are from javax.comm while in 2.1 they are in 2.0. So one would have to work this out. So all the java->JNI calls should be fairly easy but the JNI->Java calls would take some work. If someone wants to work on getting that to work, a patch would be welcome. The only files that would need to be looked at are SerialImp.[c,h]. Everything else would fall into place with little effort. -- Trent Jarvi taj at www.linux.org.uk From Michal_Hobot at drq.pl Wed Apr 21 06:00:55 2004 From: Michal_Hobot at drq.pl (Michal_Hobot at drq.pl) Date: Wed, 21 Apr 2004 14:00:55 +0200 Subject: [Rxtx] Re: Accessing bluetooth ports on IPAQ5450 using RXTX Java comm Message-ID: Hi. I don't have experiences with bluetooth on Pocket PC, only on Windows 2000. I have experiences with IRDA and it usually works like this: there is one COM port for low-level communication and second one, virtual, used for regular communication. My advice is: try your bluetooth connection with software other than Java, i.e. terminal program. When you get bluetooth connection with that software, close it and start Java. The way rxtx checks for serial port existence is very simple - it tries to open and close them, using predefined list. For Windows CE the list is COM1: to COM8: Can you get the connection with software other than Java? Michal From nip at 1783.com Wed Apr 21 16:20:12 2004 From: nip at 1783.com (1783 General) Date: Wed, 21 Apr 2004 16:20:12 -0600 Subject: [Rxtx] MacOS Install Message-ID: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> I am attempting to install onto MacOS 10.3.3. I have made sure that /var/spool/uucp exists and has permissions. I am a member of uucp group. I get an error running the package installer. I am running rxtx-2.0-7pre1. Any help is greatly appreciated. I am going to be using a USB-serial adapater. I have seen a few messages on the mail lists of people trying this. I am just trying to get a Serial LCD up and running and I have only USB ports. This project looks great and I am looking forward to attempting the X10 components. Regards, nip -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 604 bytes Desc: not available Url : http://mailman.qbang.org/pipermail/rxtx/attachments/20040421/99e54bc8/attachment-0126.bin From mringwal at inf.ethz.ch Wed Apr 21 16:27:56 2004 From: mringwal at inf.ethz.ch (Matthias Ringwald) Date: Thu, 22 Apr 2004 00:27:56 +0200 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> References: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Message-ID: <23286C0A-93E3-11D8-8F76-0003936CA678@inf.ethz.ch> hi nip I'm putting together fink packages for rxtx and the classpathx javax.comm to provide serial port access on mac. I have working packages ready (at least of 2.0-4) and you could try if they work for you. right now, I don't have much time, but if you're interested I could sent those to you during the weekend, matthias From nip at 1783.com Thu Apr 22 08:07:23 2004 From: nip at 1783.com (1783 General) Date: Thu, 22 Apr 2004 08:07:23 -0600 Subject: [Rxtx] Fink MacOS Message-ID: <609CB72C-9466-11D8-BED2-000A959CFB58@1783.com> Matthias, Sure. That would be great. I did get the RXTX package to install, but I used the jag version. Not sure of the differences, but it installed. I tried to run BlackBox briefly last evening without luck. I will continue pushing forward today. Thanks for the offer and looking forward to trying it out. Thanks to Dmitry for getting the OSX package together. nip From dmarkman at mac.com Thu Apr 22 15:36:00 2004 From: dmarkman at mac.com (Dmitry Markman) Date: Thu, 22 Apr 2004 17:36:00 -0400 Subject: [Rxtx] MacOS Install In-Reply-To: <0E626E43-93E2-11D8-8C85-000A959CFB58@1783.com> Refe